package com.mvp.shq.washer.entity.shop;

import com.mvp.shq.washer.utils.DataDictionary;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/10/12.
 */
@Entity
public class ProductComment {

    /**
     * id : e0f012a92e2045899213c36c226efca0
     * createDate : 2017-10-11 14:13:02
     * updateDate : 2017-10-11 14:13:02
     * userNickname : admin
     * anonym : 1
     * anonymName : 匿名用户呵呵
     * companyName : 蓝月亮
     * star : 4.5
     * content : 没有月亮
     */
    @Id
    private Long commentId;
    @Unique
    private String id;
    private String createDate;
    private String updateDate;
    private String userNickname;
    private String anonym;
    private String anonymName;
    private String companyName;
    private double star;
    private String content;
    private String productId;
    private String faceurl;
    private String replyInfo;



    @Generated(hash = 862656682)
    public ProductComment(Long commentId, String id, String createDate,
            String updateDate, String userNickname, String anonym,
            String anonymName, String companyName, double star, String content,
            String productId, String faceurl, String replyInfo) {
        this.commentId = commentId;
        this.id = id;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.userNickname = userNickname;
        this.anonym = anonym;
        this.anonymName = anonymName;
        this.companyName = companyName;
        this.star = star;
        this.content = content;
        this.productId = productId;
        this.faceurl = faceurl;
        this.replyInfo = replyInfo;
    }

    @Generated(hash = 1306219854)
    public ProductComment() {
    }



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getAnonym() {
        return anonym;
    }

    public void setAnonym(String anonym) {
        this.anonym = anonym;
    }

    public String getAnonymName() {
        return anonymName;
    }

    public void setAnonymName(String anonymName) {
        this.anonymName = anonymName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public double getStar() {
        return star;
    }

    public void setStar(double star) {
        this.star = star;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getFaceurl() {
        return DataDictionary.WASHER_IMG_BASE_URL+faceurl;
    }

    public void setFaceurl(String faceurl) {
        this.faceurl = faceurl;
    }

    public String getReplyInfo() {
        return replyInfo;
    }

    public void setReplyInfo(String replyInfo) {
        this.replyInfo = replyInfo;
    }
}
